Skip to content

Fix ESLint v10 RuleContext API removal (follow-up to #3972)#3979

Open
ledsun wants to merge 2 commits into
jsx-eslint:masterfrom
ledsun:update-deprecated-calls-v8
Open

Fix ESLint v10 RuleContext API removal (follow-up to #3972)#3979
ledsun wants to merge 2 commits into
jsx-eslint:masterfrom
ledsun:update-deprecated-calls-v8

Conversation

@ledsun

@ledsun ledsun commented Feb 9, 2026

Copy link
Copy Markdown

This PR follows up on the feedback in the comments of #3972 and incorporates the requested changes.

I think this PR will fix #3977.

@ljharb ljharb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll need regression tests - it might be as simple as adding eslint 10 to the GHA matrix.

@codecov

codecov Bot commented Feb 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 49.49495% with 50 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.26%. Comparing base (9af8845) to head (ea44283).

Files with missing lines Patch % Lines
lib/util/eslint.js 21.87% 50 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3979      +/-   ##
==========================================
+ Coverage   94.76%   97.26%   +2.50%     
==========================================
  Files         134      137       +3     
  Lines       10165    10252      +87     
  Branches     3794     3833      +39     
==========================================
+ Hits         9633     9972     +339     
+ Misses        532      280     -252     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ledsun ledsun marked this pull request as ready for review February 11, 2026 12:08
Comment thread lib/util/eslint.js Outdated
Comment thread lib/util/version.js Outdated
Comment thread lib/util/makeNoMethodSetStateRule.js Outdated
Comment thread .github/workflows/node-18+.yml Outdated
Comment thread lib/util/version.js Outdated
Comment thread package.json Outdated
Comment thread .github/workflows/eslint-9+.yml Outdated
Comment thread .github/workflows/eslint-8-.yml
Comment thread .github/workflows/eslint-9+.yml Outdated
@karlnorling

Copy link
Copy Markdown

@ledsun do you have time to address the failing checks. I'm looking at updating to eslint 10 and we're using the eslint-plugin-react

@wdhowell84

Copy link
Copy Markdown

rebasing here should leave only a small number of red cells, all of which look like the matrix flakiness tracked in #4007

Since that PR was merged and so was a PR that closed #4007, can this be rebased? Will that allow this to be merged, or is it also waiting on import-js/eslint-plugin-import#3230 (which needs a new review following rasmi addressing its feedback)?

I rebased and ran some local tests on a fork. I think we are just waiting to get unblocked on [import-js/eslint-plugin-import#3230]. Any remaining cleanup after that should be pretty straight forward.

They now seem to be one requested change and/or review away. CodeCov finally shut up about the 3.15% coverage it still wanted. This all may be coming to an end soon. Yay!

@wdhowell84

Copy link
Copy Markdown

eslint-plugin-import work has been merged successfully: import-js/eslint-plugin-import#3230

@lumirlumir

lumirlumir commented Jul 7, 2026

Copy link
Copy Markdown

Sorry for the ping, but I wanted to check whether there are any updates on this PR.

There have been some issues and blocked PRs on the ESLint side where things depend on eslint-plugin-react, so it would be great to make progress here if possible. (If helpful, I’d also be happy to contribute a PR to help move this forward.) Thank you.

Just for reference:

@lorand-horvath

lorand-horvath commented Jul 7, 2026

Copy link
Copy Markdown

There was a long waiting on import-js/eslint-plugin-import#3230 but it was finally merged on June 28-29, however no release has been made for it yet, since there are other issues that seem to need fixing first, see the newer commits made since then: https://github.com/import-js/eslint-plugin-import/commits/main/

@RSS1102

RSS1102 commented Jul 10, 2026

Copy link
Copy Markdown

Is there a small portion of demand? It's been a long time since I woke up @ljharb

@BearCooder

Copy link
Copy Markdown

Hey is someone updating the PR? If not I can help, from last comments I am not sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade to ESLint v10 ESLint v10 compatibility